package com.neusoft.elm.controller;

import com.neusoft.elm.po.Food;
import com.neusoft.elm.service.FoodDaoService;
import com.neusoft.elm.service.impl.FoodDaoServiceImpl;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public class FoodController {
    FoodDaoService foodDaoService=new FoodDaoServiceImpl();
    public Object listFoodByBusinessId(HttpServletRequest request) throws Exception{
        Integer businessId = Integer.valueOf(request.getParameter("businessId"));
        List<Food> list = foodDaoService.listFoodByBusinessId(businessId);
        return list;
    }
}
